//引入模块
import Mock from 'mockjs'
// 引入JSON数据
import banner from './banner.json'
import floors from './floors.json'

//引入axios请求
// import Axios from 'axios'

Mock.mock('/mock/banner', 'get', { code: 200, msg: "请求成功", data: banner })
Mock.mock('/mock/floors', 'get', { code: 200, msg: "请求成功", data: floors })

// 测试代码
// Axios.get('/mock/floors').then(
//   (res) => {
//     console.log('楼层的数据:', res),
//       (err) => {
//         console.log(err)
//       }
//   })